const app = getApp()
Page({

  data: {
    imgurl:app.globalData.imgurl
  },
  onLoad({o_id}) {
   this._getData(o_id) 
  },
  async _getData(o_id) {
    let {code ,data} = await wx.requestAsync({
      url: '/feedback/detail',
      data: {o_id },
    })
    if (code == 0) {
      data.pic = this.data.imgurl +  data.pic
      this.setData(
      data
      );
    }
  },
  // 预览图片
  _preview() {
    wx.previewImage({
      // current: current, // 当前显示图片的http链接
      // urls: this.data.imgalist // 需要预览的图片http链接列表
  })

  }
})